package cn.thirdquestion;

public class Test {
    public static void main(String[] args) {
        Printer printer = new DotmatrixPrinter();
        printer.print();

        Printer printer1 = new InkpetPringter();
        printer1.print();

        System.out.println("************************");
        LaserPrinter laserPrinter = new LaserPrinter();
        laserPrinter.print(printer);
        laserPrinter.print(printer1);
    }
}
